<template>
  <el-dialog :title="title" :visible.sync="open" width="40%" append-to-body @close="cancel" v-dialog-drag="true">
    <TestProcessForm :curr-id="currId" :currType="'detail'"></TestProcessForm>
  </el-dialog>
</template>
<script>
export default {
  name: "TestProcessDetailDialog",
  props: {
    currId: {
      type: Number,
      default: 0
    }
  },
  data() {
    return {
      // 弹出层标题
      title: "查看业务数据",
      // 是否显示弹出层
      open: true
    };
  },
  methods:{
    // 取消按钮
    cancel() {
      this.$emit('done', {type: 'cancel'})
    },

  }
};
</script>
